﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace PilotProject
{
    [MetadataType(typeof(QuestionMeta))]
    public partial class Question
    {


        public Question() { }



        public Question(PilotProject.TestEngine testEngine)
        {

        }

        public TestEngine TestEngineDescription { get; set; }


        //[Required(ErrorMessage = "* Please Enter Question Text")]
        //[StringLength(1000)]
        //[DataType(DataType.MultilineText)]
        //public String QuestionText { get; set; }

        //[Required(ErrorMessage = "* Do you want to make this an active question?")]
        //public Boolean IsActive { get; set; }

        public Option Optiontextcorrect1 { get; set; }
        public Option Optiontextincorrect2 { get; set; }
        public Option Optiontextincorrect3 { get; set; }
        public Option Optiontextincorrect4 { get; set; }

        //[Required(ErrorMessage = "* Please Enter Option Text")]
        //[StringLength(1000)]
        //[DataType(DataType.MultilineText)]
        //public Option Optiontextcorrect1 { get; set; }

        //[Required(ErrorMessage = "* Please Enter Option Text")]
        //[StringLength(1000)]
        //[DataType(DataType.MultilineText)]
        //public Option Optiontextincorrect2 { get; set; }

        //[Required(ErrorMessage = "* Please Enter Option Text")]
        //[StringLength(1000)]
        //[DataType(DataType.MultilineText)]
        //public Option Optiontextincorrect3 { get; set; }

        //[Required(ErrorMessage = "* Please Enter Option Text")]
        //[StringLength(1000)]
        //[DataType(DataType.MultilineText)]
        //public Option Optiontextincorrect4 { get; set; }

        public void AddOption()
        {
            this.Options.Add(new Option(this));
        }
    }
}